$(function() {
    $.table.init({
    	modalName:"角色",
    	url:path + "/role/page",
    	add_url: path + "/role/add",
    	edit_url: path + "/role/edit/{id}",
    	delete_url: path + "/role/delete"
    });
});

function configM(){
	var rows = $.table.getCheckedValues();
	if (rows.length != 1) {
		$.alert.warn("请选择并只能选择一条记录！");
		return;
	}
	window.location.href = path + "/roleResource/" + rows[0];
}